from fastapi import APIRouter
from models.ai.config.settings import logger
from models.ai.utils.common import R
from models.ai.config.app import app
from models.ai.routers import controllerList

"""
    设置默认路由
    @author Charles
"""
router = APIRouter(tags=["默认路由"])
@router.get("/")
async def index():
    logger.info("首页")
    return R.success()
app.include_router(router)

"""
    设置模块路由
    @author Charles
"""
for controller in controllerList:
    app.include_router(controller.router)
